local   resources = {
      graphics = {
         -- Spring Defaults
         groundfx = {
            groundflash   = 'groundflash.tga',
            groundring   = 'groundring.tga',
            seismic      = 'circles.tga',
         },
         projectiletextures = {
            TELEGREENBLUE1 = 'TELEGREENBLUE1.tga',
      			LightningStrike = 'LightningStrike.tga',
      			LightningStrike_Alpha = 'LightningStrike_Alpha.tga',
      			ExplodeHeat1 = 'ExplodeHeat1.tga',
      			flame1 = 'flame1.tga',
      			fireball1 = 'qFireball1.tga',
      			diamondstar1 = 'DiamondStar1.tga',
      			smokesmall1 = 'qsmokesmall1.tga',
      			burn1 = 'burn1.tga',
      			laserendred = 'laserendred.tga',
      			NarrowBoltNoisy = 'NarrowBoltNoisy.tga',
      			PlasmaPure = 'PlasmaPure.tga',
      			EMG = 'EMG.tga',
      			Type6Beam = 'Type6Beam.tga',
      			PlasmaHeatB = 'PlasmaHeatB.tga',
      			PlasmaHeatG = 'PlasmaHeatG.tga',
      			ConeFragments1 = 'ConeFragments1.tga',
      			Fire1 = 'Fire1.tga',
      			GenericSmokeCloud1 = 'GenericSmokeCloud1.tga',
      
      			circularthingy = 'circularthingy.tga',
      			laserend = 'laserend.tga',
      			laserfalloff = 'laserfalloff.tga',
      			randdots = 'randdots.tga',
      			smoketrail = 'smoketrail.tga',
      			wake = 'wake.tga',
      			explo = 'explo.tga',
      			explofade = 'explofade.tga',
      			heatcloud = 'explo.tga',
      			flame = 'flame.tga',
      
      			graysmoke = 'graysmoke.tga',
      			fireball = 'fireball.tga',
      
      			flare = 'flare.tga',
      			shard1 = 'shard1.tga',
      			shard2 = 'shard2.tga',
      			shard3 = 'shard3.tga',
      			explo2 = '2explo.tga',
      			redexplo = 'redexplo.tga',
      			purpleexplo = 'purpleexplo.tga',
      			blueexplo = 'blueexplo.tga',
      			pinkexplo = 'pinkexplo.tga',
      			brightblueexplo = 'brightblueexplo.tga',
      			bluenovaexplo = 'bluenovaexplo.tga',
      			muzzleside = 'muzzleside.png',
      			muzzlefront = 'muzzlefront.png',
      			bigexplo = 'bigexplo.tga',
      			bigexplosmoke = 'bigexplosmoke.tga',
      			sakexplo = 'sakexplo.tga',
      			sparkexplo = 'sparkexplo.tga',
      			cloudexplo = 'cloudexplo.tga',
      			flowexplo = 'flowexplo.tga',
      			flowexplo2 = 'flowexplo2.tga',
      			mildexplo = 'mildexplo.tga',
      			spikeexplo = 'spikeexplo.tga',
      			starexplo = 'starexplo.tga',
      			greenexplo = 'greenexplo.tga',
      
      			gunshot = 'CC/gunshot.tga',
      			flash1 = 'flash1.tga',
      			flash2 = 'flash2.tga',
      			flash3 = 'flash3.tga',
      			armsmoketrail = 'armsmoketrail.tga',
      			coresmoketrail = 'coresmoketrail.tga',
      			shotgunflare = 'shotgunflare.tga',
      			lightb = 'PD/lightningball.tga',
      			lightning = 'PD/lightning.tga',
      
      			plasma = 'GPL/plasma.tga',
      
      			flashside1 = 'flashside1.tga',
      			shotgunside = 'shotgunside.tga',
      
      			megaparticle = 'megaparticle.tga',
      			shot = 'shot.tga',	
      			beamrifle = 'beamrifle.tga',
      			beamrifletip = 'beamrifletip.tga',
      			smallflare = 'GPL/smallflare.tga',			
      			dirt = 'CC/dirt.png',
      			--smoke = 'smoke/smoke00.tga',
      			diamondstar = 'diamondstar.tga',
      			redlight = 'lightr.bmp',
      			whitelight = 'lightw.bmp',
      			yellowlight = 'lighty.bmp',
      
      			sporetrail = 'GPL/sporetrail.tga',
      			blooddrop = 'PD/blooddrop.tga',
      			bloodblast = 'PD/bloodblast.tga',
      			bloodsplat = 'PD/bloodsplat.tga',
      			blooddropwhite = 'PD/blooddropwhite.tga',
      			bloodblastwhite = 'PD/bloodblastwhite.tga',
      			null = 'PD/null.tga',
      
      			bluenovaexplo = 'bluenovaexplo.tga',
      			randdots = 'randdots.tga',
      			blueexploredexplo = 'blueexploredexplo.tga',
			      cartooncloud = 'effects/cartooncloud.png',
			      springlogo = 'effects/springlogo.png',
			      star = 'effects/star.png',
            muzzleflash_side         = 'effects/muzzleflash_side.tga',
            muzzleflash_front        = 'effects/muzzleflash_front.tga',


         },
         maps = {
			     detailtex = 'detailtex2.bmp',
			     watertex = 'ocean.jpg',
		     },
		     trees = {
			     bark = 'Bark.bmp',
			     leaf = 'bleaf.bmp',
			     gran1 = 'gran.bmp',
			     gran2 = 'gran2.bmp',
			     birch1 = 'birch1.bmp',
			     birch2 = 'birch2.bmp',
			     birch3 = 'birch3.bmp',
		     },
		     scars = {
			     scar1 = 'scars/scar1.bmp',
			     scar2 = 'scars/scar2.bmp',
			     scar3 = 'scars/scar3.bmp',
			     scar4 = 'scars/scar4.bmp',
		     },
		     --smoke = {
			   --  smoke00 = 'smoke/smoke00.tga',
			   --  smoke01 = 'smoke/smoke01.tga',
      	 --  smoke02 = 'smoke/smoke02.tga',
			   --  smoke03 = 'smoke/smoke03.tga',
			   --  smoke04 = 'smoke/smoke04.tga',
			   --  smoke05 = 'smoke/smoke05.tga',
			   --  smoke06 = 'smoke/smoke06.tga',
			   --  smoke07 = 'smoke/smoke07.tga',
			   --  smoke08 = 'smoke/smoke08.tga',
			   --  smoke09 = 'smoke/smoke09.tga',
			   --  smoke10 = 'smoke/smoke10.tga',
			   --  smoke11 = 'smoke/smoke11.tga',
		     },
   }

local VFSUtils = VFS.Include('gamedata/VFSUtils.lua')

local function AutoAdd(subDir, map, filter)
  local dirList = RecursiveFileSearch("bitmaps/" .. subDir)
  for _, fullPath in ipairs(dirList) do
    local path, key, ext = fullPath:match("bitmaps/(.*/(.*)%.(.*))")
    if not fullPath:match("/%.svn") then
    local subTable = resources["graphics"][subDir] or {}
    resources["graphics"][subDir] = subTable
      if not filter or filter == ext then
        if not map then
          table.insert(subTable, path)
        else -- a mapped subtable
          subTable[key] = path
        end
      end
    end
  end
end

-- Add mod projectiletextures
AutoAdd("projectiletextures", true)

return resources